package com.guoning.office_system.service;

import com.guoning.office_system.model.Message;
import com.guoning.office_system.vo.Criteria;
import com.guoning.office_system.vo.PageBean;

import java.util.List;
import java.util.Map;

public interface MessageService {
    PageBean<Map> selectByQueryCondition(Criteria criteria, PageBean pageBean);

    int updateAllMessageByUserId(Long userId);

    int updateHaveReadById(List<Message> list);

    int updateDeleteById(List<Message> list);

    int updateRecoverById(List<Message> list);

    Message selectDraftByUserId(Long userId);

    int deleteByPrimaryKey(Long id);

    int insert(Message record);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKeyWithBLOBs(Message record);

    int updateByPrimaryKey(Message record);
}